<HTML>
<HEAD>
<TITLE>Japanese ELKS FAQ</TITLE>
<BASE HREF="http://elks.sf.net/faq/">
<META NAME="Author" CONTENT="Brian Candler">
<META NAME="KeyWords" CONTENT="elks,faq,linux,kernel,8086">
</HEAD>
<BODY BGCOLOR="#C0D0E0">

Character set: ISO-2022-JP(JIS)

<HR>

<H1 ALIGN="CENTER">ELKS FAQ</H1>

$B$3$l$O(B Linux-8086$B$H$7$F$bCN$i$l$F$$$k(B ELKS$B$K$D$$$F$N2?EY$b7+$j$+$($5$l$k<ALd(B
$B$KBP$9$kEz$($N%j%9%H$G$9!#(B

<P>
$B$3$N(B FAQ$B$O(B Brian Candeler$B$5$s$N%*%j%8%J%k$r85$K(B Alister Riddoch$B$5$s$,%a%s%F%J%s(B
$B%9$r9T$C$F$$$^$9!#%"%C%W%G!<%H$O(B
<A HREF="mailto:ajr@ecs.soton.ac.uk">ajr@ecs.soton.ac.uk</A>.
$B$KAw$C$F2<$5$$!#:G?7HG$O(B
<A HREF="http://www.ecs.soton.ac.uk/elks">
http://www.ecs.soton.ac.uk/elks</A>.
$B$K:_$j$^$9!#(B
$BCm!*(B ELKS$B$O3+H/$N=i4|CJ3,$J$N$G$3$N>pJs$O$9$0DDIe2=$7$^$9$h!#(B
<P>
$BB>$N>pJs$O(B ELKS$B%[!<%`%Z!<%8(B
<A HREF="http://www.uk.linux.org/ELKS-Home/index.html">http://www.uk.linux.org/ELKS-Home/index.html</A>.
 $B$G8+$F2<$5$$(B
<P>
$B%a!<%j%s%0%j%9%H$K;22C$9$k$K$O(B $BK\J8$K(B 
<B>subscribe linux-8086</B>$B$H$@$1=q$$$F(B
majordomo@vger.kernel.org $B$KAw$C$F2<$5$$!#(B

$B%a!<%j%s%0%j%9%H$N%"!<%+%$%V$O(B 
<A HREF="http://epocha.pd.mcs.net/Linux8086/">
http://epocha.pd.mcs.net/Linux8086/</A>.
$BKt$O(B
<A HREF="http://www.cyberpass.net/~dummy/robert/archives/linux-8086/">
http://www.cyberpass.net/~dummy/robert/archives/linux-8086/</a> which
$B$K:_$j$^$9!#(B
<P>
$BCm!*(B ELKS$B$O(B Linux$B$G$O:_$j$^$;$s!"$G$9$+$i$3$N%a!<%j%s%0%j%9%H$O(B Linux$B$K(B
$B4X$9$k<ALd$K$O$U$5$o$7$/:_$j$^$;$h!#(B
<A HREF="news:comp.os.linux.misc">comp.os.linux.misc</A>
$BEy$KAw$C$F$M!#(B

<H2>$B%;%/%7%g%s(B 1 $B35MW(B</H2>

<UL>
<LI><A HREF="#1.1">Q1.1. ELKS$B$C$F2?(B?</A>
<LI><A HREF="#1.2">Q1.2. ELKS$B$H(B Linux$B$N0c$$$O(B?</A>
<LI><A HREF="#1.3">Q1.3. ELKS$B$O$9$0;H$($k(B?</A>
<LI><A HREF="#1.4">Q1.4. ELKS$B$O(B 8088$B%W%m%;%C%5!<$GF0$/(B?</A>
</UL>

<H2>$B%;%/%7%g%s(B 2 $B%3%s%Q%$%k$H%$%s%9%H!<%k(B</H2>

<UL>
<LI><A HREF="#2.1">Q2.1.  $B%=!<%9%3!<%I$O$I$3$K:_$j$^$9$+(B?</A>
<LI><A HREF="#2.2">Q2.2.  ELKS$B$N%+!<%M%k$O$I$N$h$&$K:n$j$^$9$+(B?</A>
<LI><A HREF="#2.3">Q2.3.  /usr/include/linux/vm86.h $B$,8+$D$+$i$J$$$H$N%(%i!<$,=P$^$7$?!#(B</A>
<LI><A HREF="#2.4">Q2.4.  ELKS$B$N(B "init"$B$O$I$N$h$&$K:n$j$^$9$+(B?</A>
<LI><A HREF="#2.5">Q2.5.  root$B%U%!%$%k%7%9%F%`$O$I$N$h$&$K:n$k$N(B?</A>
<LI><A HREF="#2.6">Q2.6.  XT$B$H(B 360K$B%G%#%9%/%I%i%$%V$,:_$k$N$G$9$,$I$&$9$l$PNI$$$G$9$+(B?</A>
<LI><A HREF="#2.7">Q2.7.  boot$B%$%a!<%8$N%k!<%H%G%P%$%9$r(B $BJQ$($kJ}K!$O(B?</A>
<LI><A HREF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S</A>
$B$,%W%i%$%^%j!<%5%$%H$G$9!#(BELKS$B$H(B Dev86$B$N$"$kB>$N%5%$%H$O0J2<$NDL$j$G$9!#(B
<p>
<A HREF="ftp://ftp.ecs.soton.ac.uk/pub/elks/">
ftp://ftp.ecs.soton.ac.uk/pub/elks/</A><BR>
<A HREF="ftp://cam053212.student.utwente.nl/pub/8086-nix/ELKS/">
ftp://cam053212.student.utwente.nl/pub/8086-nix/ELKS/</A><BR>
<A HREF="ftp://tsx-11.mit.edu/pub/linux/ALPHA/linux-16/">
ftp://tsx-11.mit.edu/pub/linux/ALPHA/linux-16/</A><BR>
<A HREF="ftp://src.doc.ic.ac.uk/packages/linux/tsx-11-mirror/ALPHA/linux-16/">
ftp://src.doc.ic.ac.uk/packages/linux/tsx-11-mirror/ALPHA/linux-16/</A><BR>
<A HREF="ftp://ftp.amscons.com/pub/mirrors/ELKS">
ftp://ftp.amscons.com/pubi/mirrors/ELKS</A><BR>
<p>
$B$b$7JL$N%5%$%H$r$4B8$8$G$7$?$i%a%$%s%F%J!<$^$GO"Mm$7$F2<$5$$!#(B
<H3>
<A NAME="2.2">Q2.2.  ELKS$B$N%+!<%M%k$O$I$N$h$&$K:n$j$^$9$+(B?</A>
</H3>
<TT>dev86/Dev86-0.0.13.4.tar.gz</TT> $B$H(B <TT>kernel/elks-0.0.67/elks-0.0.67.tar.gz</TT>
($B$b$7$/$O:G?7%P!<%8%g%s(B)$B$r%@%&%s%m!<%I$7(B /usr/src $B$K2rE`$7$F2<$5$$!#(B

<PRE>
    tar -xvzf Dev86-0.0.13.tar.gz -C /usr/src
    tar -xvzf elks-0.0.67.tar.gz -C /usr/src
</PRE>
$B3+H/4D6-$O(B /usr/src/linux-86$B$K!"%+!<%M%k$N%=!<%9$O(B /usr/src/elks$B$KE83+$5$l(B
$B$^$9!#(B $B<!$.$K(B <B>bcc</B>$B%3%s%Q%$%i$r4^$`%D!<%kN`$r:n@.$7$^$9!#(B
<PRE>
    cd /usr/src/linux-86
    make install
</PRE>
$B$=$l$+$i%+!<%M%k$r%3%s%Q%$%k$7$^$9!#(B
<PRE>
    cd /usr/src/elks
    # $B%+!<%M%k$r:n$k!#(B
    make config
    make dep
    make
</PRE>
make config$B$O(B linux$B%+!<%M%k$NJ*$H;w$??6$kIq$$$r$7$^$9!#%G%U%)%k%H$N@_Dj$N$^(B
$B$^$GB?$/$N%7%9%F%`$GF0$/$G$7$g$&!#5.J}<+?H$N9T$C$F$$$k;v$,NI$/M}2r=PMh$F$$$J(B
$B$$$&$A$O%*%W%7%g%s$NJQ99$O$7$J$$$G2<$5$$!#(B

($B$b$7(B gcc$B$r;H$C$F(B linux$B%+!<%M%k$r:n$C$?;v$,M-$k$J$i(B elks$B%+!<%M%k$N(B make$B$N(B
$BB.$5$K6C$-$^$9$h(B! :-) $B:G=*E*$K(B "Image"$B$H8F$P$l$k%U%m%C%T!<%G%#%9%/%$%a!<%8$,(B
$B=PMh$^$9!#%U%)!<%^%C%H$5$l$?%U%m%C%T!<%G%#%9%/$K%3%T!<$7!"%V!<%H$7$F2<$5$$!#(B

<PRE>
    dd if=Image of=/dev/fd0
</PRE>
or
<PRE>
    make disk
</PRE>
$B$3$l$G$3$N%G%#%9%/$+$i%V!<%H=PMh$^$9!#$"$H$O%^%&%s%H$9$k%k!<%H%U%m%C%T!<(B
$B%G%#%9%/$r:n$j$^$9!#(Bbcc$B$r;H$$!"(B"init"$B%W%m%0%i%`$r%3%s%Q%$%k$7!"(Broot minix
$B%U%!%$%k%7%9%F%`$r:n$kI,MW$,$"$j$^$9!#0J2<$rFI$_?J$a$F2<$5$$!#(B
<H3>
<A NAME="2.3">Q2.3.  /usr/include/linux/vm86.h $B$,8+$D$+$i$J$$$H$N%(%i!<$,=P$^$7$?!#(B</A>
</H3>

<TT>/usr/include/sys/vm86.h</TT> $B$N(B <TT>#include &lt;linux/vm86.h&gt;</TT> $B$r(B <TT>#include &lt;asm/vm86.h&gt;</TT>
   $B$KJQ99$7$F2<$5$$!#(B

<H3>
<A NAME="2.4">Q2.4.  ELKS$B$N(B "init"$B$O$I$N$h$&$K:n$j$^$9$+(B?</A>
</H3>

ELKS$B%+!<%M%k$,%V!<%H$9$l$P(B /bin/init$B$,F0$-=P$7$^$9!#(B
<p>
$B8=%P!<%8%g%s$N(B "init"$B$O(B linux.mit.edu$B$K$b$"$k(B tiny-utils$B%Q%C%1!<%8$K4^$^$l$k(B
$B$b$N$G$9!#%+!<%M%k%3!<%I$,:G6aJQ99$K$J$j(B /bin/sh$B$NBe$o$j$K(B /bin/init$B$,%m!<%I(B
$B$5$l$k$h$&$K$J$j$^$7$?!#(B
<p>
$B%+!<%M%k(B0.0.67$B$O(B kernel/elks-0.0.67/elkscmd.tar.gz$B$K(B init$B$H(B login($B%Q%9%o!<%I(B
$B%A%'%C%/$J$7(B)$B$r4^$`%f!<%F%#%j%#%F%#!<$N%;%C%H$,:_$j$^$9!#$=$N%3%s%Q%$%k$H%$%s(B
$B%9%H!<%kK!$O(B
<PRE>
    bcc -0 -O -s init.c -o init
    bcc -0 -O -s login.c -o login
</PRE>
$B$H$7$F<B9T%U%!%$%k$r:n$j!"%k!<%H%G%#%9%/$N(B /bin$B%G%#%l%/%H%j!<$K%3%T!<$7$F2<(B
$B$5$$!#(Blogin$B%W%m%0%i%`$O(B /etc/passwd$B$H(B /etc/group$B%U%!%$%k!"$=$l$H(B /bin/sh($B$b(B
$B$7$/$O(B /etc/passwd$B$N%7%'%k$N%(%s%H%j!<$K5-$5$l$F$$$k%7%'%k(B)$B$,I,MW$G$9!#(B
<p>
$B%3%s%Q%$%i%*%W%7%g%s$N(B<code>-0</code> ($B?tCM$N(B"$B%<%m(B")$B$O(B8086$B%3!<%I$r@8@.$7!"(B<code>-O</code> ($BBgJ8;z$N(B"$B%*(B
$B!<(B")$B$O%3!<%I$N:GE,2=$rM-8z$K$7!"(B<code>-ansi</code> $B$O(B ANSI$B%U%!%s%/%7%g%s%W%m%H%?%$%W$rM-8z(B
$B$K$7!"(B<code>-s</code> $B$O%P%$%J%j!<%3!<%I$+$i%7%s%\%k$r=|$-$^$9!#(B
<p>
$B%+!<%M%k(B0.0.56$B$+$i(B sash($B%9%?%s%I%"%m!<%s(B $B%7%'%k(B)$B$,;H$(!"B?$/$N?M$K(B /bin/sh$B$N(B
$BBe$o$j$K;H$o$l$F$$$^$9!#(Belkscmd.tr.gz$B$K4^$^$l$F$$$^$9!#(B/etc/passwd$B$H(B /etc/gr
oup$B$O(B linux$B$NJ*$r%3%T!<$9$k$HNI$$$G$7$g$&!#(Bls -l$B$,;H$($^$9!#$^$?(B sash$B$N%(%i!<(B
$B%l%]!<%H$,(B /usr/lib/liberror.txt$B$K;D$5$l$^$9!#!!(B
<H3>
<A NAME="2.5">Q2.5.  root$B%U%!%$%k%7%9%F%`$O$I$N$h$&$K:n$k$N(B?</A>
</H3>

$B$$$/$D$+$NJ*$r4^$s$@(B  minix$B%U%m%C%T!<$r:n$i$M$P$J$j$^$;$s!#(B/bin/$B$K(B init$B$H(B lo
gin$B$H(B sh$B!"(B/etc/$B$K$O(B passwd$B$H(B group$B!"(B/dev/$B$K$O(B init$B$N0Y$N#3$D$N(B ttys$B$,I,MW$G$9(B
$B!#(B
<BR><I>$BCm(B! /dev/tty$B$O(B Linux$B$,I8=`$G;H$&!J#5!"#0!K$H$O0[$J$j$^$9$h!#(B</I>
<pre>
    mkdir /usr/src/root86
    cd /usr/src/root86
    mkdir dev
    cd dev
    mknod tty c 4 0
    mknod tty2 c 4 1
    mknod tty3 c 4 2
    mknod fd0 b 3 128
    cd ..
    mkdir bin
    cd bin
    cp &lt;path-to-elkscmd-init&gt; init
    cp &lt;path-to-elkscmd-login&gt; login
    cp &lt;path-to-elkscmd-sash&gt; sh
    cd ..
    mkdir etc
    cd etc
    cp &lt;path-to-skeleton-passwd&gt; passwd
    cp &lt;path-to-skeleton-group&gt; group
    cd ..
    fdformat /dev/fd0H1440      # if floppy not yet formatted
    mkfs -t minix -n14 /dev/fd0 1440
    mount -t minix /dev/fd0 /a  # need a mount point "/a"
    cp -pR /usr/src/root86/* /a
    umount /a
</pre>
$B$$$/$D$+$N%G%#%9%H%j%S%e!<%7%g%s$G$O(B /dev/fd0H1440$B$N$+$o$j$K(B /dev/fd0u1440$B$r(B
$B;H$$$^$9!#(B<p>
$B%Q%9%o!<%I$O$^$@%5%]!<%H$5$l$F$$$J$$$N$G(B passwd$B%U%!%$%k$+$i%Q%9%o!<%I$r:o=|(B
$B$7$F2<$5$$!#(B<p>
$B$b$7(B2.2.x$B%+!<%M%k$G(B mount-2.5k$B$,;H$($k$J$i%O!<%I%G%#%9%/$K%k!<%W%P%C%/%U%!%$%k%7(B
$B%9%F%`$r;H$C$F%G%#%9%/%$%a!<%8$r:n$l$^$9!#$=$&$7$?$i%U%m%C%T!<$K%@%s%W$7$F(B
$B2<$5$$!#(B<p>
<pre>
    dd if=/dev/zero of=root.image bs=18k count=80
    losetup /dev/loop0 root.image
    mkfs -t minix /dev/loop0 1440
    mount -t minix /dev/loop0 /a
    ...
    umount /a
    dd if=root.image of=/dev/fd0
</pre>
ELKS.0.53$B$+$i(B 1.44M$B0J30$N%U%m%C%T!<$b;H$($^$9!#>e$NJ}K!$G%5%$%:$rE,59$*$-$+(B
$B$($F2<$5$$!#(B1.2M$B$N%I%i%$%V$G(B 360K$B$N=q$-9~$_$,2DG=$G$9!#(B360K$B$N%I%i%$%V$G%V!<(B
$B%H$7$?$$$N$J$iI,MW$G$7$g$&!#(B
<H3>
<A NAME="2.6">Q2.6.  XT $B$H(B 360K$B%G%#%9%/%I%i%$%V$,:_$k$N$G$9$,$I$&$9$l$PNI$$$G$9$+(B?</A>
</H3>

$BL\E*$N%^%7%s$,(B 360K$B%I%i%$%V$,$D$$$F$$$k$H$-$J$I(B $BJL$N%^%7%s$G(B boot$B$H(Broot
$B%$%a!<%8$r;H$&$H$-$O$A$g$C$H$7$?Cm0U$,I,MW$G$9!#(B360K$B%I%i%$%V(B(5.25"DD)$B$O(B
40$B%H%i%C%/$G$9$7(B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I%i%$%V$G%9%l!<%V$K@\B3$5$l$?%G%#%9%/$N:G=i$N6h2h$K(B 20M$B$N%U%!%$(B
$B%k%7%9%F%`$r:n$k$H$-$O(B<pre>
    mkfs /dev/hdb1 20000
</pre>
<P>
$B$3$l$G%^%&%s%H%]%$%s%H(B /mnt$B$K%^%&%s%H$9$k$K$O(B<pre>
    mount /dev/hd?? /mnt $B$H$7$^$9!#(B
</pre>
$B?7$7$$6h2h$N%k!<%H%G%#%l%/%H%j$O>/$7%_%9$,$"$j(B /mnt$B$+$i$O(B "ls -l"$B$,;H$($^$;$s(B
$B$J$<(B mkfs$B$,>/$74V0c$C$?%U%!%$%k%7%9%F%`$r:n$k$N$+;d$K$OJ,$+$j$^$;$s$,!"$=$N(B
$B>e$G:n6H$7$F$^$9!#(B<p>
$B0J2<$NMM$K?7$7$$%U%!%$%k%7%9%F%`$K4pK\E*$J%G%#%l%/%H%j$r:n$j$^$9!#(B<pre>

    mkdir /mnt/bin
    mkdir /mnt/dev
    mkdir /mnt/usr
    mkdir /mnt/usr/lib
    mkdir /mnt/mnt
    mkdir /mnt/etc
    mkdir /mnt/root
    mkdir /mnt/home
    mkdir /mnt/home/user?....
</pre>
<p>
$B<!$K4pK\E*$J%U%!%$%k$r0\$7$^$9!#$^$H$b$J%7%9%F%`$K$9$k$K$O$h$j$*$*$/$N%U%!%$(B
$B%k$,I,MW$G$7$g$&$1$l$I$b!"$3$3$O4pK\$H$J$k$b$N$@$1$G$9$,7k9=LrN)$A$^$9!#(B<pre>
    cp /bin/init /mnt/bin/init
    cp /bin/login /mnt/bin/login
    cp /bin/sh /mnt/bin/sh
    cp /bin/ls /mnt/bin/ls
    cp /bin/pwd /mnt/bin/pwd
    cp /bin/mount /mnt/bin/mount
    cp /bin/umount /mnt/bin/umount
    cp /bin/cp /mnt/bin/cp
    cp /etc/passwd /mnt/etc/passwd
    cp /etc/group /mnt/etc/group
    cp /usr/lib/liberror.txt /mnt/usr/lib/liberror.txt
</pre><p>
$B:G8e$K4pK\E*$J%G%P%$%9$r:n$j$^$9!#(B<pre>
    mknod /mnt/dev/tty c 4 0
    mknod /mnt/dev/tty2 c 4 1
    mknod /mnt/dev/tty3 c 4 2
    mknod /mnt/dev/fd0 b 3 128
    mknod /mnt/dev/fd1 b 3 192
    mknod /mnt/dev/hda b 3 0
    mknod /mnt/dev/hda1 b 3 1
    mknod /mnt/dev/hda2 b 3 2
    mknod /mnt/dev/hda3 b 3 3
    mknod /mnt/dev/hda4 b 3 4
    mknod /mnt/dev/hdb b 3 64
    mknod /mnt/dev/hdb1 b 3 65
    mknod /mnt/dev/hdb2 b 3 66
    mknod /mnt/dev/hdb3 b 3 67
    mknod /mnt/dev/hdb4 b 3 68
</pre><p>
$B$=$7$?$i%"%s%^%&%s%H$7$^$7$g$&!#(B<pre>
    umount /dev/hd??
</pre><p>
$B<!$K@5$7$$%G%P%$%9$r;XDj$7$??7$7$$%+!<%M%k$r%3%s%Q%$%k$7D>$9I,MW$,$"$j$^$9!#(B
$B$3$l$O(B ELKS$B%+!<%M%k%=!<%9$K$"$k(B include/linuxmt/config.h$B$rJT=8$7!"(BROOT_DEV$B$N(B
0x380$B$r6h2h$NHV9f$KJQ$($^$9!#:G8e$N#2$D$N?tCM$O6h2h$NHV9f$r#1#6?JI=5-$7$?%^%$(B
$B%J!<HV9f$G$9!#(B
-$BNc(B- hdb3$B$N%^%$%J!<HV9f$O(B 67$B!"$3$l$O#1#6?JI=5-$G$O#4#3$G$9!#$G$9$+$i(B ROOT_DEV
$B$N?tCM$O(B 0x343$B$H$J$j$^$9!#(B<p>
$B?7$7$$%+!<%M%k%U%m%C%T!<%G%#%9%/$r:n$k0Y$K(B
Type<pre>
    make disk $B$HF~NO$7$F2<$5$$(B
</pre>
$B$=$7$F$3$N?7$7$$%V!<%H%G%#%9%/$G(B ELKS$B$rN)$A$"$2$F2<$5$$!#?7$7$/%k!<%H$,%^%&%s(B
$B%H$5$l$^$9!#7Y9p%a%C%;!<%8$,$G$^$9$,DL>o$I$&$j$KF0$-$^$9!#$G$b%U%m%C%T!<%G%#(B
$B%9%/$N$b$N$h$jB.$$$G$9$h!#%k!<%H%G%#%l%/%H%j$O40`z$G$O$J$$$1$l$IJL$N%G%#%l%/(B
$B%H%j$K0\$l$^$9$7!"$=$NB>$NE@$b$$$D$b$I$&$jF0$-$^$9!#(B

<H2>$B%;%/%7%g%s(B 3  ELKS$B$r;H$&(B</H2>


<H3>
<A NAME="3.1">Q3.1.  Linux$B$G(B bcc$B$N%P%$%J%j!<$OF0$-$^$9$+(B?</A>
</H3>
$B$O$$!#%+!<%M%k%b%8%e!<%k$r%m!<%I$9$k;v$K$h$j(B ELKS$B%P%$%J%j!<$rD>@\<B9T=PMh$^$9(B
$B!#$3$l$O(B ELKS$B>e$G%W%m%0%i%`$r3+H/$9$k$h$j<j7Z$G$9$7!"(BLinux$B5!$G%F%9%H=PMh$^$9(B
$B!#!J$H$O8@$C$F$b$"$J$?$N%W%m%0%i%`$,%+!<%M%kL$<BAu$N%3!<%I$r;H$C$F$b(BELKS$B$G$O(B
$BF0$-$^$;$s$,!#!K(B
<PRE>
    cd /usr/src/linux-86/elksemu
    make module
    insmod binfmt_elks.o
</PRE>
$B%j%V!<%H$9$kEY$K(B 'insmod'$B$HF~NO$9$kI,MW$,M-$k;v$KCm0U$7$F2<$5$$!#(B
/usr/src/linux-86/tests$B$K;n$;$k(B bcc$B$N%5%s%W%k%W%m%0%i%`$,$$$/$D$+:_$j$^$9!#(B
('wc'$BEy(B)
<P>
$B%b%8%e!<%k:n@.;~$K(B "modversions.h: no such file or directory"$B$N%(%i!<$,=P$?$i(B
Makefile$B$+$i<!$N9T$r:o=|$7$F2<$5$$!#(B
<PRE>
MODCFLAGS=-D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
          -fno-strength-reduce -pipe -m486 -DCPU=486 -DMODULE -DMODVERSIONS
</PRE>

<H3>
<A NAME="3.2">Q3.2.  DOSEMU$B>e$G(B ELKS$B$O%V!<%H$7$^$9$+(B?</A>
</H3>
$B$O$$!#(BLinux 2.0.7$B$N(B dosemu 0.63.1.36$B$G(B ELKS$B$O%V!<%H=PMh$^$9!#B?J,B>$NAH$_$"$o(B
$B$;$G$bNI$$$G$7$g$&!#%U%m%C%T!<%V!<%H$r9T$&0Y$K(B dos$B$b$7$/$O(B xdos$B$G(B -A$B%U%i%0$r(B
$B;H$$(B <tt>/etc/dosemu</tt>$B$K%U%m%C%T!<%G%#%9%/%I%i%$%V$N@_Dj$r$7$^$9!#(B
<PRE>
    floppy { device /dev/fd0 threeinch }  
</PRE>

<H2>
$B%;%/%7%g%s(B 4  $BL$2rEz$N<ALd(B
</H2>

$B$3$l$i$N<ALd$NEz$($r4?7^$$$?$7$^$9!#(B
  
<UL>
<LI>DOS$B$+$i(BLOADLIN.EXE$B$G(B Linux$B$,%V!<%H=PMh$k$h$&$K(B ELKS$B$b=PMh$^$9$+!)(B
<A HREF="mailto:bsittler@mnt.edu">Benjamin C. W. Sittler</A> $B$5$s$,$=$l$,=PMh$k(B 
<A HREF="http://www.geocities.com/SiliconValley/Lakes/4535/">BootELKS</A>,
$B$r:n$j$^$7$?!#(B
<LI>$B;d$N%Q!<%`%H%C%W5!$K$O(B RAM$B%I%i%$%V$,:_$j$^$9!#(BELKS $B$G;H$($^$9$+!)(B
    <I>(ELKS$B$K(B msdosfs$B$,$"$l$P$h$$$H;W$&$N$G$9$,(B...)</I>
<LI>boot$B$H(B root$B%U%m%C%T!<%G%#%9%/$r0l$D$K$^$H$a$i$l$^$9$+!)(B
<PRE>
> From: Bar-David Yedidya
>
> $B:#F|;d$O(B LILO$B$r;H$$(B root/boot$B%G%#%9%/$r0l$D$K$^$H$a$^$7$?!#F0$$$?$h!*(B
> $B%U%m%C%T!<%G%#%9%/$K(B /boot$B$r:n$j!"(BImage$B$r%3%T!<$7!"(Bboot.b$B$r$7$^$9!#(B
> $B%U%m%C%T!<%G%#%9%/$N(B /etc$B$K$3$l$i$r2C$($?(B lilo.conf$B$rCV$-$^$9!#(B
> boot=/dev/fd0
> compact
> image=/boot/Image
>         label=lin16
>
> did lilo -r /mnt
> and Hopla!
> $B;d$O$^$@(B Linux$B$H(B linux-16$B$N%V!<%H%3!<%I$r%+!<%M%k$N%=!<%9$G8+Hf$Y$F$$$^$;(B
> $B$s$,!"F1$8F0:n$@$H;W$$$^$9$7!"(Blilo$B$,F0$/M}M3$H;W$$$^$9!#(B
</PRE>
$B:G6a$N%P!<%8%g%s$N(B(0.0.46$B0J9_(B)ELKS$B$G$O2u$l$k$H$NJs9p$,:_$j$^$9!#(B
<I>386$B0JA0$N%^%7%s$G$bF0$/$N$G$7$g$&$+!)(B</I>
<p>Chad Page$B$5$s$O<!$N%P!<%8%g%s$G%7%s%0%k%G%#%9%/$GF0$/$h$&$K:n6H$7$F$$$^(B
$B$9!#(B
</UL>
<p>

<HR>
<ADDRESS>
<A HREF="mailto:ajr@ecs.soton.ac.uk">Alistair Riddoch</A> /
last updated 15th July 1997
</ADDRESS>
Japanese translation by
<A HREF="mailto:tadd@fsinet.or.jp">Tadayoshi Kubo</A>
</BODY>
</HTML>
